/*
 * thread_globals.h
 * Created on December 3, 2007; 4:56 PM
 * by VRamadurai
 */
#ifndef _THREAD_GLOBALS_H_
#define _THREAD_GLOBALS_H_

#include "HsTypes.h"

extern volatile hs_int32_t thread1to3_flag1;
extern volatile hs_int32_t thread1to2_flag1;
extern volatile hs_int32_t thread2to3_flag1;
extern volatile hs_int32_t thread3toall_rate_flag;
extern volatile hs_int32_t thread3_eq_index_flag;
extern volatile hs_int32_t thread1to2_sincos_flag;
extern volatile hs_int32_t thread2to1_sincos_flag;

extern volatile hs_int32_t threads_all_init_done;

extern volatile hs_int32_t tx_rx_mode_2;
extern volatile hs_int32_t tx_rx_mode_3;

/** shared buffers **/
extern hs_int16_t ssOutIQ_shared[OUTBUFFSIZE*2*2];
extern hs_int16_t eqOutIQ_shared[EQOUTBUFFSIZE*2*2];
extern hs_int16_t eqOutIQ_shared_11[EQOUTBUFFSIZE*2*2];
extern hs_uint8_t ucCckBits_shared[4];
extern hs_int16_t ssRxSymbIQ_shared[8];

void init_thread_flags();

#endif
